﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using User_Interface_Design.DAO;
using User_Interface_Design.DTO;

namespace User_Interface_Design
{
    public partial class GhiNhanMuonDia : Form
    {
        public GhiNhanMuonDia()
        {
            InitializeComponent();
        }

        private void GhiNhanMuonDia_Load(object sender, EventArgs e)
        {
            List<KhachHang> kq = new List<KhachHang>();
            kq = DataAccess.TimKiemKhachHang(textBox1.Text);

            foreach (KhachHang kh in kq)
            {
                label9.Text = kh.HoTen;
                label10.Text = kh.CMND;
                label12.Text = kh.DiaChi;
                label11.Text = kh.DienThoai;
            }
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void groupBox3_Enter(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void label9_Click(object sender, EventArgs e)
        {

        }
    }
}
